#ifndef BOARDITEM_H
#define BOARDITEM_H

#include <QGraphicsSvgItem>
#include <QPointF>
#include <QGraphicsSceneMouseEvent>
#include <QPainter>

class BoardItem : public QGraphicsSvgItem {
public:
  static QPointF calculateScenePos(int, int);
  BoardItem( int, int, QString, QGraphicsItem* parent = 0 );
  QPointF& getScenePos();
  int getBoardX();
  int getBoardY();

  virtual bool isMovable();
  virtual void move(int, int) { return; };

protected:
  virtual int getDefaultZValue();
  void calculateSelfScenePos();
  int x;
  int y;
  QPointF scenePos;
};

#endif
